package main

import (
	"fmt"
)

func main() {
	// ch1 := make(chan int, 1)
	// ch1 <- 2
	// ch1 <- 5
	// fmt.Println(<-ch1)

	pipline := make(chan string)
	go func() {
		pipline <- "hello world"
		pipline <- "hello China"
		close(pipline)
	}()
	for data := range pipline {
		fmt.Println(data)
	}
}
